package com.example.myapplication9.week4.jsjf;

public class LinkedListTest {
    public static void main(String[] args) {

        LinkedOrderedList<Integer> list=new LinkedOrderedList();
        LinkedUnorderedList list1=new LinkedUnorderedList();
        list.add(5);
        list.add(10);
        list.add(11);
        list.add(9);
        list.add(15);
        list.add(8);


        System.out.println(list.toString());
        list1.addToFront(10);
        list1.addToFront(11);
        list1.addToRear(12);
        list1.addAfter(10,12);
        System.out.println(list1.toString());
        list1.removeFirst();
        System.out.println(list1.toString());
        list1.removeLast();
        System.out.println(list1.toString());
        System.out.println(list1.first());
        System.out.println(list1.last());
        System.out.println(list1.contains(5));
    }
}
